package exam.common.util;

public class LongUtils {
	
	/**
	 * convertStringToLong
	 * @param str
	 * @return long
	 */
	public static long convertStringToLong(String str) {
		long ret = 0;
		try {
			ret = Long.valueOf(str);
		}catch (NumberFormatException e) {
			ret = -1;
		}
		return ret;
	}
}
